package org.spiderflow.configuration;

import org.spiderflow.core.utils.SpringUtils;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author 张中海
 */
public class ApplicationContextInitializerImpl implements ApplicationContextInitializer<ConfigurableApplicationContext> {

    @Override
    public void initialize(ConfigurableApplicationContext applicationContext) {
        SpringUtils.setApplicationContext(applicationContext);
    }
}